package com.focusai.efairy.ui.base;

import android.view.View;

import com.focusai.efairy.R;

import java.util.List;

/**
 * 含有页面无数据时提示
 * Created by luo_guangwen on 2017/11/18.
 */

public class SwipeBackTipBaseActivity extends SwipeBackBaseActivity {
    private View tipView;

    @Override
    public void setContentView(int layoutResID) {
        super.setContentView(layoutResID);
        tipView = findViewById(R.id.iv_no_data);
    }


    public void showTip(List list){
        if (tipView == null)
            return;
        if (list != null && list.size() > 0){
            tipView.setVisibility(View.GONE);
        }else {
            tipView.setVisibility(View.VISIBLE);
        }
    }
}
